package com.cloud.controller;

import com.cloud.service.UserNoticeService;
import com.cloud.tools.CommonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 *
 * @author： linJianHong
 * @dateTime： 23:28 2022/4/23
 * @Description:
 * @ClassName:
 */

@RequestMapping("/natms1/volunteer/notice")
@RestController
public class VolunteerNoticeController {
    @Resource
    UserNoticeService userNoticeService;

    /* 志愿者查看审核员发布的公告 */
    @GetMapping(value = "/approval")
    public CommonResult readNoticeFromApproval(){
        return userNoticeService.fromApprovalForVolunteer();
    }
}